package root.electronclass.electronclass.grade.attendance

import androidx.core.os.bundleOf
import root.electronclass.electronclass.mvp.GlobalParameter
import root.electronclass.electronclass.other.WebFragment

/**
 * 班级座位
 * @author Lokiy
 * @date 2023/3/27 22:27
 */
class ClassAttendanceFragment : WebFragment() {
    init {
        arguments = bundleOf(EXTRA_DATA to CLASS_CHECK.format(GlobalParameter.getEcardInfo().classId))
    }
    
    override fun onHiddenChanged(hidden: Boolean) {
        super.onHiddenChanged(hidden)
        if (hidden.not() && view != null) {
            loadUrl()
        }
    }
}